let router = [
  // user
  {
    path: '/',
    component: './Home/empty',
  },
  {
    path: '/user',
    component: '../layouts/UserLayout',
    routes: [
      {path: '/user/login', component: './User/Login'},
      {path: '/user/login/:id', exact: true, component: './User/Login'},
      // {path: '/user/HRfKtNwPrPOTeGWZ', component: './User/NoLogin'},
    ],
  },
  // {
  //   path: '/party_home',
  //   component: './Home/dashboard2',
  // },
  // {
  //   path: '/tool',
  //   component: './Tools/Index',
  // },
  // {path: '/party_article/:id', component: './Home/articleDetail'},
  // {path: '/party_list/:id', component: './Home/articleList'},
  // {
  //   path: '/safety_product_homepage',
  //   component: './Home/dashboard3',
  // },
  // {path: '/safety_article/:id', component: './Home/safetyDetail'},
  // {path: '/safety_list/:id', component: './Home/safetyList'},
  // {
  //   path: '/labour_union_homepage',
  //   component: './Home/dashboard4',
  // },
  // {path: '/union_article/:id', component: './Home/unionDetail'},
  // {
  //   path: '/fdsrt',
  //   component: './Dashboard/NoPermissionIndex',
  // },
  // {
  //   path: '/pipe_hsj_home',
  //   component: './Pipe_home/Index',
  // },
  {
    path: '/',
    component: '../layouts/BasicLayout',
    routes: [
      // dashboard
      {
        path: '/dashboard',
        name: '主页',
        icon: 'home',
        // component: './Home/dashboard2',
        component: './Dashboard/Index',
      },
      {
        path: '/home',
        name: '主页',
        icon: 'home',
        component: './Home/Index',
      },
      {
        path: '/meters',
        name: '水表列表',
        icon: 'home',
        component: './Meters/Index',
      },
      {
        path: '/meter_error',
        name: '水表错误分析',
        icon: 'home',
        component: './MeterError/Index',
      },
      {
        path: '/vendor_meter',
        name: '水表错误分析',
        icon: 'home',
        component: './Vendor_meter/Index',
      },
      {
        path: '/meter_warm',
        name: '水表用水量报警',
        component: './MeterWarm/Index',
      },
      {
        path: '/DMA_Statistics',
        name: '水表用水量报警',
        component: './MeterRate/Index',
      },
      {
        path: '/consumption_plan',
        name: '水表用水量报警',
        component: './ConsumptionPlan/Index',
      },
      {
        path: '/roles',
        component: './Roles/Index',
      },
      {
        path: '/staffs',
        component: './Staffs/Index',
      },
      {
        path: '/price',
        component: './Price/Index',
      },
      {
        path: '/payment',
        component: './Payment/Index',
      },
      {
        path: '/invoicings_manage',
        component: './InvoicingsManage/Index',
      },
      {
        path: '/billings',
        component: './Billings/Index',
      },
      {
        path: '/revenue',
        component: './Revenue/Index',
      },
      {
        path: '/owner',
        component: './Owner/Index',
      },
      {
        path: '/mechanical',
        component: './Mechanical/Index',
      },
      {
        path: '/staff_report',
        component: './Staff_report/Index',
      },
      {
        path: '/level_annual_billings1',
        component: './LevelAnnualBillings1/Index',
      },
      {
        path: '/level_annual_billings2',
        component: './LevelAnnualBillings2/Index',
      },
      {
        path: '/level_user_billings',
        component: './LevelUserBillings/Index',
      },
      {
        path: '/old_meter_logs',
        component: './OldMeterLogs/Index',
      },
      {
        path: '/meter_abnormal',
        component: './MeterAbnormal/Index',
      },
      {
        path: '/zero_abnormal',
        component: './ZeroAbnormal/Index',
      },
      {
        path: '/daily_payment_reports',
        component: './DailyPaymentReports/index',
      },
      {
        path: '/meter_analysis',
        name: '设备列表',
        icon: 'home',
        component: './Devices/Index',
      },
      {
        component: '404',
      },
    ],
  },
];

export default router
